import request from '@/utils/request'

// 查询薪酬总表-当月社保数据列表
export function listXczbsb(query) {
  return request({
    url: '/basebill/xczbsb/list',
    method: 'get',
    params: query
  })
}

// 查询薪酬总表-当月社保数据详细
export function getXczbsb(fid) {
  return request({
    url: '/basebill/xczbsb/' + fid,
    method: 'get'
  })
}

// 新增薪酬总表-当月社保数据
export function addXczbsb(data) {
  return request({
    url: '/basebill/xczbsb',
    method: 'post',
    data: data
  })
}

// 修改薪酬总表-当月社保数据
export function updateXczbsb(data) {
  return request({
    url: '/basebill/xczbsb',
    method: 'put',
    data: data
  })
}

// 删除薪酬总表-当月社保数据
export function delXczbsb(fid) {
  return request({
    url: '/basebill/xczbsb/' + fid,
    method: 'delete'
  })
}

// 审核薪酬总表
export function handleAudit(fid) {
  return request({
    url: '/basebill/xczbsb/audit/' + fid,
    method: 'put'
  })
}

// 反审核薪酬总表
export function handleDeAudit(fid) {
  return request({
    url: '/basebill/xczbsb/deAudit/' + fid,
    method: 'put'
  })
}

// 废弃薪酬总表
export function handleDisuse(fid) {
  return request({
    url: '/basebill/xczbsb/disuse/' + fid,
    method: 'put'
  })
}

//修改单据状态
export function operation(fids,fstate){
  return request({
    url:'/basebill/xczbsb/operation/' + fids+'/'+fstate,
    method:'put'
  })
}
